package com.gem.demo.service.impl;

import com.gem.demo.entity.User;
import com.gem.demo.mapper.UserMapper;
import com.gem.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//业务层事务管理
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User login(String username, String password) {
   return userMapper.selectUser(username,password);
    }
}